Skip to content

Add devcontainer configuration#632

Open
dciborow wants to merge 4 commits intopypa:mainfrom
dciborow:dciborow/devcontainer
Open

Add devcontainer configuration#632
dciborow wants to merge 4 commits intopypa:mainfrom
dciborow:dciborow/devcontainer

Conversation

@dciborow
Copy link
Contributor

Adding a devcontainer configuration which can be used with GitHub Codespace or with VSCode to create a local container.

The configuration includes the basics configurations for Python.

Comment on lines +5 to +18
&& python -m pip install 'flit>=3.8.0'

ENV FLIT_ROOT_INSTALL=1

COPY pyproject.toml README.rst ./
RUN mkdir -p flit \
&& python -m flit install --only-deps --deps develop \
&& rm -r pyproject.toml README.rst flit

// ENV FLIT_ALLOW_INVALID=1

// COPY pyproject.toml .
// RUN python -m flit install --only-deps --deps develop \
// && rm -r pyproject.toml
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
&& python -m pip install 'flit>=3.8.0'
ENV FLIT_ROOT_INSTALL=1
COPY pyproject.toml README.rst ./
RUN mkdir -p flit \
&& python -m flit install --only-deps --deps develop \
&& rm -r pyproject.toml README.rst flit
// ENV FLIT_ALLOW_INVALID=1
// COPY pyproject.toml .
// RUN python -m flit install --only-deps --deps develop \
// && rm -r pyproject.toml
&& python -m pip install 'flit>=3.8.1'
ENV FLIT_ROOT_INSTALL=1
ENV FLIT_ALLOW_INVALID=1
COPY pyproject.toml .
RUN python -m flit install --only-deps --deps develop \
&& rm -r pyproject.toml

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after this PR is completed, we can update the docker file.
#631

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant